﻿@if(Request.IsAuthenticated) {
    <a href="#" >My Profile</a>
    @Html.ActionLink("Log Off", "LogOut", "Account", new { area = "" }, null)
}
else {
    @Html.ActionLink("Log On", "Login", "Account", new { area = "" }, null)
}